<!-- uploadify -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/uploadify/uploadify.css">
<script type="text/javascript" src="__PUBLIC__/Style/Common/uploadify/jquery.uploadify.min.js?{:rand(0,9999)}"></script>
<if condition="$error eq null" >
<form action="" class="form-horizontal" role="form">
  <div class="form-group">
    <label class="col-sm-2 control-label">是否开启商城币</label>
    <div class="col-sm-4">
      <input type="checkbox" name="currencyConfig[opened]" {$currencyConfig['opened']?"checked='checked'":""} value="1"/>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">商城币名称</label>
    <div class="col-sm-2">
      <input class="form-control" name="currencyConfig[name]" datatype="*" value="{$currencyConfig['name']}">
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">商城币市值(分)<br/><span class="label label-info">1商城币=多少RMB</span></label>
    <div class="col-sm-2">
      <input class="form-control" name="currencyConfig[value]" datatype="*" value="{$currencyConfig['value']}">
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/saveCurrencyConfig">保存更改</button>
    </div>
  </div>
</form>
<else/>
{$error}
</if>
